package com.yeyks.cnbooking.dto.calendar;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: dagny
 * @date: 2019/6/26 0026 14:46
 */
@Data
@ApiModel(description = "房态信息，包含近30天的数据")
public class RoomCalendarDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键Id，更新时必传的参数")
    private Long id;

    @ApiModelProperty(value = "房间ID(cn中真实的RoomId)")
    private Integer roomId;

    /**
     * 房源日期yyyy-MM-dd
     */
    @ApiModelProperty("房源日期yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    /**
     * 抢单价
     */
    @ApiModelProperty("抢单价")
    private Integer salePrice;

    /**
     * 抢单底价
     */
    @ApiModelProperty("抢单底价")
    private Integer bottomPrice;

    @ApiModelProperty("原价")
    private Integer originPrice;

    /**
     * 每天可订房数
     */
    @ApiModelProperty("每天可订房数")
    private Integer count;

    /**
     * 默认1，0:下架  1：上架
     */
    @ApiModelProperty("默认1，0:下架  1：上架")
    private Integer status;

    @ApiModelProperty("价格计划ID， CNBooking中下单使用的ID")
    private String ratePlanId;
}
